package com.qianli.cashmama.trade.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.qianli.cashmama.trade.dao.TTradeFlowDao;
import com.qianli.cashmama.trade.entity.TTradeFlowEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * User: sm
 * Date: 2017-07-29
 * Time: 13:10:49.495
 */

@Repository
public class TTradeFlowDaoImpl extends AbstractBaseMapper<TTradeFlowEntity> implements TTradeFlowDao {

    @Override
    public List<TTradeFlowEntity> getListByTradeNo(String tradeNo) {
        Map<String, Object> map = new HashMap<>();
        map.put("tradeNo", tradeNo);
        return getSqlSession().selectList(getStatement("getListByTradeNo"), map);
    }
}